package cn.com.api.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiU_dynamic;
import cn.com.api.mapper.base.U_dynamicMapperBase;
import cn.com.util.PageInfo;

//DAO
public interface ApiU_dynamicMapper extends U_dynamicMapperBase {

	// 新增对象后返回记录ID
	public int U_dynamicInsertion(ApiU_dynamic u_dynamic);

	// 根据条件查询
	public List<ApiU_dynamic> findU_dynamicsByMapListPage(@Param("map") Map param, @Param("page") PageInfo pageInfo);

	// 我的朋友圈动态
	public List<ApiU_dynamic> findU_dynamicsInfoByUserIDListPage(@Param("user_id") String user_id,
			@Param("page") PageInfo pageInfo);

}
